namespace Digitalmes.Application.Mes;

/// <summary>
/// 产品用料表
/// </summary>
public sealed class ProdMaterialConsumeDto : Dto
{
    /// <summary>
    /// SN
    /// </summary>
    public string? Sn { get; set; }

    /// <summary>
    /// 产线 Id。
    /// </summary>
    public long LineId { get; set; }

    /// <summary>
    /// 产线编号
    /// </summary>
    public string? LineCode { get; set; }

    /// <summary>
    /// 工位 Id。
    /// </summary>
    public long OpId { get; set; }

    /// <summary>
    /// 工位编号
    /// </summary>
    public string? OpCode { get; set; }

    /// <summary>
    /// 工序 Id。
    /// </summary>
    public long ProcId { get; set; }

    /// <summary>
    /// 工序编号
    /// </summary>
    public string? ProcCode { get; set; }

    /// <summary>
    /// 上料步序,0 表示没有步序。
    /// </summary>
    public int Step { get; set; }

    /// <summary>
    /// 物料代码
    /// </summary>
    public string? MaterialCode { get; set; } 

    /// <summary>
    /// 物料条码
    /// </summary>
    public string? Barcode { get; set; } 

    /// <summary>
    /// 上料时间
    /// </summary>
    public DateTime FeedingTime { get; set; }

    /// <summary>
    /// 是否解绑
    /// </summary>
    public bool IsUnbound { get; set; }

    /// <summary>
    /// 修改时间
    /// </summary>
    public DateTime? UpdateTime { get; set; }

    /// <summary>
    /// 修改人
    /// </summary>
    public string? UpdateUser { get; set; }
}